<div class="hero-unit">
<?php foreach ($course_base_info as $key => $value):?>
    <label>课程名：</label><input type="text" value="<?=$value->name?>" readonly /><br/>
    <label>学分：</label><input type="text" value="<?=$value->credit?>" readonly /><br/>
    <label>学时：</label><input type="text" value="<?=$value->time?>" readonly /><br/>
    <label>选修/必修：</label>
    <?php if($value->style=='1'):?>
        <input type="text" value="必修" readonly />
    <?php else:?>
        <input type="text" value="选修" readonly />
    <?php endif;?>
<?php endforeach;?>
</div>
<div class="hero-unit">
<form>
    <table class="table">
        <thead>
            <tr>
                <th>
                    学院
                </th>
                <th>
                    专业
                </th>
                <th>
                    届
                </th>
                <th>
                    学期
                </th>
                <th>
                    上课周
                </th>
                <th>
                    上课时间
                </th>
                <td>
                    上课地点
                </td>
                <td>
                    操作
                </td>
            </tr>
        </thead>
        <tbody>
        <?php foreach ($variable as $key => $value): ?>
            <tr>
                <td><?=$value->academy?></td>
                <td><?=$value->major?></td>
                <td><?=$value->perid?></td>
                <td><?=$value->semester?></td>
                <td><?=$value->timeLong?></td>
                <td>星期<?=$value->weekday?>第<?=$value->section?>节</td>
                <td><?=$value->place?></td>
            </tr>
        <?php endforeach ?>
        </tbody>
</form>

</div>